<%@ page trimDirectiveWhitespaces="true" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<title>编辑岗位</title>
<jsp:include page="../../include/header.jsp" />
</head>
<body class="">
<form action="base/position/position!update.action" method="post" class="form-horizontal" id="positionEditForm" class="">
	<input type="hidden" name="position.id" value="${position.id}" />
	<c:if test="${message!=null}">
	<div class="alert alert-success">
	    <i class="icon-info-sign icon-large"></i>
	    <button type="button" class="close" data-dismiss="alert">&times;</button>
	    ${message}
	</div>
	</c:if>
    <div class="control-group">
        <label class="control-label">编号</label>
        <div class="controls">
            <input type="text" name="position.code" value="${position.code}" />
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">名称</label>
        <div class="controls">
            <input type="text" name="position.name" value="${position.name}" />
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">所属部门</label>
        <div class="controls">
            <input type="text" readonly _name="position.department.id" value="" />
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">岗位级别</label>
        <div class="controls">
        	<select name="position.rank">
        		<option value=""></option>
        		<c:forEach var="rank" items="${positionRanks}">
        			<option value="${rank.id}" <c:if test="${(position.rank ne null) and (position.rank.id eq rank.id)}">selected</c:if> >${rank.name}</option>
        		</c:forEach>
        	</select>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">定编</label>
        <div class="controls">
            <input type="text" name="position.maxSize" value="${position.maxSize}" />
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">显示顺序</label>
        <div class="controls">
            <input type="text" name="position.dsporder" value="${position.dsporder}" />
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">描述</label>
        <div class="controls">
            <input type="text" name="position.description" value="${position.description}" />
        </div>
    </div>
	<div class="form-actions form-action-no-bg">
	    <button class="btn btn-success btn-small" type="submit">保存</button>
	    <button class="btn btn-success btn-small" type="reset">重置</button>
	</div>
</form>
</body>
</html>